package cn.appsys.service.developer;

import java.util.List;

import cn.appsys.pojo.AppVersion;

public interface AppVersionService {
	/**
	 * 根据AppInfo的id获取版本信息集合
	 * 
	 * @param id
	 * @return
	 */
	public List<AppVersion> getAppVersionList(String id);

	/**
	 * 添加AppVersion
	 * 
	 * @param appVersion
	 * @return
	 */
	public boolean addAppVersion(AppVersion appVersion);

	/**
	 * 根据appId查询最近一次的版本
	 * 
	 * @param appId
	 * @return
	 */
	public AppVersion getAppVersion(String appId, String id);
	
	/**
	 * 删除AppInfo
	 * @return
	 */
	public boolean delAppVersion(String id);
	
	/**
	 * 根据id更新App版本信息
	 * 
	 * @param id
	 * @return
	 */
	public boolean delFile(String id);

	/**
	 * 修改AppVersion
	 * 
	 * @param appVersion
	 * @return
	 */
	public boolean modifyAppVersion(AppVersion appVersion);
}
